﻿using SCM.Common;
using SqlSugar;
using System;

namespace SCM.Model.DBEntity
{
    /// <summary>
    /// 产品表
    /// </summary>
    [SugarTable("T_Material_Product")]
    public class T_Material_Product :EntityBase
    {
        /// <summary>
        /// 产品ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 所属企业ID
        /// </summary>
        public string CompanyID { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public string CustomerID { get; set; }

        /// <summary>
        /// 客户产品代码
        /// </summary>
        public string CustomerProductCode { get; set; }

        /// <summary>
        /// 产品类别
        /// </summary>
        public string Category { get; set; }

        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// RoHS测试报告ID
        /// </summary>
        public string RoHSTestReportID { get; set; }

        /// <summary>
        /// RoHS声明状态
        /// </summary>
        public RoHSStatmentStatusEnum RoHSStatmentStatus { get; set; }

        /// <summary>
        /// RoHS声明状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string RoHSStatmentStatusStr { get { return EnumHelper.GetDescription(RoHSStatmentStatus); }}

        /// <summary>
        /// 重量
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string UOM { get; set; }

        /// <summary>
        /// MCD ID
        /// </summary>
        public string MCDID { get; set; }

        /// <summary>
        /// 绿色认证状态
        /// </summary>
        public GreenStatusEnum GreenStatus { get; set; }

        /// <summary>
        /// 绿色认证状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string GreenStatusStr { get { return EnumHelper.GetDescription(GreenStatus); }}
    }
}